/**
 * 
 */
package nus.mtech.bill;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Alvin Lee
 *
 */
public class Payment implements Serializable {
	private static final long serialVersionUID = 3501481129949713867L;
	private static long paymentId = 0;
	private String accountNo;
	private String paymentID;
	private Date paymentDate;
	private double payAmount;
	
	public Payment(String accountNo, double payAmount){
		this.accountNo = accountNo;
		this.payAmount = payAmount;
		this.paymentDate = new Date();
		this.paymentID = getPaymentUId();
	}
	
	public Date getPaymentDate() {
		return paymentDate;
	}
	
	public String getAccountNo() {
		return accountNo;
	}

	public void setAccountNo(String accountNo) {
		this.accountNo = accountNo;
	}
	public void setPaymentDate(Date paymentDate) {
		this.paymentDate = paymentDate;
	}

	
	public Payment (String paymentID) {
		this.paymentID = paymentID;
		
	}

	public double getPayAmount() {
		return payAmount;
	}

	public void setPayAmount(double payAmount) {
		this.payAmount = payAmount;
	}
	
	public String getPaymentID() {
		return paymentID;
	}
	
	public static String getPaymentUId(){
		return String.valueOf(paymentId++);
	}
}
